//
//  RentVieitor.h
//  RENTVISITOR
//
//  Created by wonder on 2017/8/21.
//  Copyright © 2017年 UNN. All rights reserved.
//

#ifndef RentVieitor_h
#define RentVieitor_h
#import "Utils.h"
#import "MBProgressHUD.h"
#import "SVProgressHUD.h"
#import "AFNetworking.h"
#import "AppDelegate.h"
#import "AFHttpTool.h"
#import "LCMD5Tool.h"
#import "Masonry.h"
#import "ReturnSign.h"
#import "MJExtension.h"
#import "UIImageView+WebCache.h"
#import "SDImageCache.h"
#import "UIView+ExtensionFram.h"
#import "UIColor+ColorChange.h"

#import <IQKeyboardManager/IQKeyboardManager.h>
#import "YGDevelopment.h"

//友盟APPkey
#define UMKEY  @"59cce1d9717c195e63000067"


//推荐链接
#define  RURL @"http://www.zuke.com/register?m="

#define KWidth  [UIScreen mainScreen].bounds.size.width
#define KHeight [UIScreen mainScreen].bounds.size.height
#define kArcColor [UIColor colorWithRed:arc4random()%256/255.0 green:arc4random()%256/255.0 blue:arc4random()%256/255.0 alpha:1]
#define RGBA(r, g, b, a)                    [UIColor colorWithRed:r/255.0f green:g/255.0f blue:b/255.0f alpha:a]
#define BackgroundColor  [Utils colorConvertFromString:@"#F0F0F0"]
#define APPKEY_URL @"Zuke.Com.App"
#define User_listsValue [[NSUserDefaults standardUserDefaults] objectForKey:@"user_data"]
#define User_listsKey  @"user_data"

#define APPDELEGATE ((AppDelegate*)[UIApplication sharedApplication].delegate)
#define WS(weakSelf)  __weak __typeof(&*self)weakSelf = self;
#define ScreenWidth   ([[UIScreen mainScreen] bounds].size.width) // 屏幕宽度
#define ScreenHeight  ([[UIScreen mainScreen] bounds].size.height)// 屏幕高度
#define ScaleWidth   ([[UIScreen mainScreen] bounds].size.width/750) // 屏幕宽度
#define ScaleHeight  ([[UIScreen mainScreen] bounds].size.height/1334.0)// 屏幕高度
#ifdef DEBUG
#define NSLog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__)
#else
#define NSLog(...)
#endif

#define IS_IPHONE5     (KHeight==568.0f)
#define IS_IPHONE6      (KHeight==667.0f)
#define IS_IPHONE6P     (KHeight==736.0f)

//#define Main_Scale     (KWidth/375.0f)

#define Main_Scale ({\
CGFloat scale=KWidth/375.0f;\
if(scale>1)\
scale=1;\
(scale);\
})\


#define GetURLWith(tag) \
({\
NSString *url=@"";\
if (tag==1)\
url=@"http://www.xxx.com:";\
else if (tag==2)\
url=@"http://www.xxx-test.com:";\
else if(tag==3)\
url=@"http://www.xxx-test2.com:";\
(url);\
})\


//服务器环境
#define Main_Url @"http://api2.zuke.com/"
//正式环境
//#define Main_Url @"http://zuke.com/"
#endif /* RentVieitor_h */
